package com.mathlearning.auth.repository;

import com.mathlearning.auth.entity.LearningTopic;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LearningTopicRepository extends JpaRepository<LearningTopic, Long> {
    List<LearningTopic> findByStatusOrderBySortOrderAscIdDesc(Integer status);
    List<LearningTopic> findByCategoryAndStatusOrderBySortOrderAsc(String category, Integer status);
}









